import React from 'react';
import {Link} from 'react-router';

class Preview extends React.Component {
	render() {
		let articleList = this.props.articleList;
		console.log(articleList)
		return (
			<article>
				<h3>
					<Link to={`/detail/${this.props.id}`}>{this.props.title}</Link>
				</h3>
				<span>{this.props.date}</span>
				<p>
					{this.props.description}
				</p>
			</article>
		)
	}
}

export default Preview;